#include "item.h"

Item::Item(typeOfItem type, QStringList &name, QStringList &text, QStringList &textOk,
           QStringList &textFail, int power)
{
    this->_type = type;
    this->_name = name;
    this->_action = text;
    this->_actionOk = textOk;
    this->_actionFail = textFail;
    this->_power = power;
}

QStringList Item::getNames(void){
    return this->_name;
}

QString Item::getText(int number){
    return this->_action.at(number);
}

QString Item::getTextOk(int number){
    return this->_actionOk.at(number);
}

QString Item::getTextFail(int number){
    return this->_actionFail.at(number);
}

int Item::getPower(void){
    return this->_power;
}

typeOfItem Item::getType(void){
    return this->_type;
}
